<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!-- -------------------------------------------- -->
<jsp:useBean id="workplanBean" class="by.ostrovsky.webhousingsystem.bean.data.WorkPlanBean"
	scope="session" />
<c:set var="list" value="${workplanBean.entityList}" />
<!-- -------------------------------------------- -->

<table class="table">
	<tr><td>Id</td><td>Done</td>
		<td>User</td><td>Work</td><td>Deadline</td><td>Brigade</td></tr>
	<c:forEach items="${list}" var="item">
			<tr><td>${item.id}</td>
			<td>
				<c:choose>
    				<c:when test="${item.done == true}">
        				Yes
    				</c:when>
    				<c:otherwise>
	        			No
    				</c:otherwise>
				</c:choose>
			</td>
			<td>${item.requestedWork.account.id}</td><td>${item.requestedWork.work}</td> 
			<td>${item.requestedWork.deadline}</td><td>${item.taskGroup.id}</td></tr>
	</c:forEach>
</table>